package com.lrj.mysecurity.service;

import com.lrj.mysecurity.entity.Permission;
import com.lrj.mysecurity.entity.Role;
import com.lrj.mysecurity.entity.User;

import java.util.List;

public interface UserService {

    User getById(Long id);

    User getByName(String userName);

    List<Long> getRoleIdListByUserId(Long userId);

    List<Role> getRoleListByUserId(long userId);

    List<Long> getPermissionIdListByUserId(Long userId);

    List<Permission> getPermissionListByUserId(Long userId);
}
